<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<title><tpl> $langNewNotTitleDoc </tpl></title>
<link href="<tpl> $template_dir </tpl>/css/validate.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/validation.js"></script>
<script type="text/javascript">
<!-- 
Validator.Setup(
{
	Name : 'addnews',
	DataSource : '',
	DataSourceType : Validator.Enumerate.DataSourceType.Attribute | Validator.Enumerate.DataSourceType.Xml,
	ValidateType : Validator.Enumerate.ValidateType.Submit | Validator.Enumerate.ValidateType.Blur,
	AlertType : Validator.Enumerate.AlertType.Color | Validator.Enumerate.AlertType.SummarySingle ,
	Summary : 'news_summary',
	XmlPath : '../operation/lang_for_xml.php?f=news',
	XPath : {Path : 'own_news.add.html'}
}
);
 -->
</script>
</head>
<body>
<div id="news_summary" class="Validator_Summary" style="display:none"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tpl> if $news_array.news_id != "" </tpl>
<tpl> assign var='action' value='update' </tpl>
<tpl> else </tpl>
<tpl> assign var='action' value='save' </tpl>
<tpl> /if </tpl>
<form id="addnews" action="own_news.php?action=<tpl> $action </tpl>" method="post">
    <tr>
      <td width="30%" align="right"><tpl> $langNewsTitle </tpl></td>
      <td width="70%">
        <input type="text" name="txtNewstitle" id="txtNewstitle" value="<tpl> $news_array.news_title </tpl>"/>
        *      </td>
    </tr>
    <tr>
      <td align="right"><tpl> $langNewsAuthor </tpl></td>
      <td><input type="text" name="txtNewsauthor" id="txtNewsauthor"  value="<tpl> $news_array.news_author </tpl>"/></td>
    </tr>
    <tr>
      <td align="right"><tpl> $langNewsKeyword </tpl></td>
      <td><input type="text" name="txtNewskeyword" id="txtNewskeyword"  value="<tpl> $news_array.news_keyword </tpl>"/></td>
    </tr>
    <tr>
      <td align="right"><tpl> $langNewsViewNum </tpl></td>
      <td><input type="text" name="txtNewsviewnum" id="txtNewsviewnum" value="<tpl> $news_array.news_view_num|default:0 </tpl>"/></td>
    </tr>
    <tr>
      <td align="right"><tpl> $langNewsContent </tpl></td>
      <td><textarea name="txtNewscontent" id="txtNewscontent" rows="4" cols="30"><tpl> $news_array.news_content </tpl></textarea>
      *</td>
    </tr>
    <tr>
      <td colspan="2" align="center"><input type="submit" name="button" id="submit" class="new_anniu" value="<tpl> $langbtnNewsSubmit </tpl>" /></td>
    </tr>
    <input type="hidden" name="txtNewsid" id="txtNewsid" value="<tpl> $news_array.news_id </tpl>"/>
</form>
</table>
</body>
</html>